<html>
<head>
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/jquery.ui.datepicker-pt-BR.js');?>
    
    <?php echo $this->HeadMeta(); ?>
    <?php echo $this->headTitle(); ?>
    <?php echo $this->jQuery(); ?>
    <?php echo $this->headLink(); ?>
    <?php echo $this->headScript(); ?>
    
<style type="text/css">
    input, textarea {font-size: 10px;}
    div.ui-datepicker { font-size: 85%;  }     
</style>
    
</head>
<body>
    <div id="page">
        <div id="wrap"> 
            <div id="top">
                <?php 
                $this->navigation = Zend_Registry::get('Zend_Navigation');
                echo $this->navigation()->menu()->setMaxDepth(0);?><!-- /menu -->
            </div><!-- /top -->
            <div>
                <?php
                    echo $this->navigation()
                        ->menu()
                        ->setOnlyActiveBranch(true)
                        ->setMinDepth(1)
                        ->setMaxDepth(1)
                        ->setRenderParents(false)
                        ->setUlClass('sub-menu'); 
                    ?>
            </div>            
            <?php if($this->login): ?>
            <div id="login" style="text-align: right; width:100%;">
                Olá, <?php echo $this->login." / " ?>
                <a href="<?php echo $this->url(array('controller'=>'index','action'=>'logout'));?>">Sair</a>
            </div>
            <?php endif; ?>
            <?php
            //mostra as mensagens de erro caso existam
            $session = Zend_Registry::get('session');
            if($session->erro) {
                echo "<div class='message-wrap'><div class='col-yellow'><div class='message-box'>";
                print_r($session->erro);
                echo "</div></div>";
                unset($session->erro);
            }
            ?>
            <div id="content">
                <?php
                echo "<h2>$this->title</h2>";
                //mostra o conteúdo da página

                echo $this->layout()->content;
                ?>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $('document').ready(function(){
            $(".date").datepicker();
        });
    </script>
        
</body>
</html>